<template>
    <div class="app-score-card" :class="[theme]">
        <div class="info">
            <div class="title">{{title}}</div>
            <div class="sub-title" v-html="subTitle">{{subTitle}}</div>
        </div>
        <div class="count">{{count}}</div>
        <div class="arrow">
            <img src="../assets/image/arrow-right.png">
        </div>
    </div>
</template>

<script>
    export default {
        name: "AppScoreCard",
        props: {
            title: String,
            subTitle: String,
            theme: String,
            count: String
        }
    }
</script>

<style lang="scss" scoped>
    .app-score-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15/3.5+vw 24/3.75+vw 15/3.75+vw 15/3.75+vw;
        background: linear-gradient(to right, #5E99FF, #3DB2FF);
        color: #fff;
        position: relative;
        width: 42vw;
        border-radius: 5/3.75+vw;
        &.red {
            background: linear-gradient(to right, #FA5C97, #FE8E83);
        }
        .info {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            .title {
                font-size: 16/3.75+vw;
            }
            .sub-title {
                font-size: 13/3.75+vw;
            }
        }
        .count {
            font-size: 14/3.75+vw;
        }
        .arrow {
            position: absolute;
            right: 5/3.75+vw;
            top: 50%;
            transform: translateY(-50%);
            img {
                width: 20/3.75+vw;
                height: 20/3.75+vw;
            }
        }
    }
</style>
